package com.huanzhidadi.ratelimiter.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


@Slf4j
@RestController
@RequestMapping(value = "sec")
public class SecController {


    private Integer count = 0;

    @RequestMapping(value = "/get", method = RequestMethod.GET)
    public String get() {
        count++;
        log.info("访问次数: " + count);
        return "访问次数：" + count;
    }


}
